
def main():
    n = int(input())

    while n != 1:
        if n % 2 == 0:
            print(str(n)+'/2=', end="")
            n //= 2
            print(n)

        else:
            print(str(n)+'*3+1=', end="")
            n = n*3+1
            print(n)


if __name__ == '__main__':
    main()
